package cn.schoolwow.util.test.module.beanCopy.testcase;

import cn.schoolwow.quickflow.domain.FlowContext;
import cn.schoolwow.quickflow.flow.BusinessFlow;
import cn.schoolwow.util.domain.beanCopy.BeanCopy;
import cn.schoolwow.util.test.module.beanCopy.domain.Student;
import cn.schoolwow.util.test.module.beanCopy.domain.UserExtend;
import cn.schoolwow.util.test.module.common.domain.User;
import org.junit.Assert;

public class CopyPropertiesTypeMismatchTestCaseFlow implements BusinessFlow {
    @Override
    public void executeBusinessFlow(FlowContext flowContext) throws Exception {
        UserExtend userExtend = new UserExtend();
        userExtend.username = "zhangsan";
        userExtend.password = "123456";
        userExtend.age = 18;

        Student student = new Student();
        BeanCopy.copyProperties(userExtend, student);
    }

    @Override
    public String name() {
        return "Bean复制时字段类型不同时";
    }
}
